<div class="bjui-pageContent">
    <form action="/admin/personnel/report/detail" data-toggle="ajaxform"
          data-options="{closeCurrent: true, okAfterCallback: freshPostPersonnel}">
        <input type="hidden" name="id" value="{{$reportInfo['id']}}">
        <div class="bjui-row col-2">


            <label class="row-label">标题:</label>
            <div class="row-input">
                <input type="text" class="input-sm" data-rule="required;" value="{{$reportInfo['title']}}" size="30"
                       readonly>

            </div>
            <br/>

            <label class="row-label">类型:</label>
            <div class="row-input">
                <input type="text" class="input-sm" data-rule="required;" value="@if($reportInfo['type']==1)
                {{'日报'}}
                @elseif($reportInfo['type']==2)
                {{'周报'}}
                @elseif($reportInfo['type']==3)
                {{'月报'}}
                @endif" size="30" readonly>

            </div>
            <br/>

            <label class="row-label">创建日期:</label>
            <div class="row-input">
                <input type="text" class="input-sm" data-rule="required;" value="{{$reportInfo['created_date']}}" size="30"
                       readonly>

            </div>
            <br/>

            <label class="row-label">附件:</label>
            <div class="row-input">
                @if($reportInfo['enclosure_url'])
                {{$reportInfo['enclosure_url']}}
                <a href="/admin/personnel/report/download-attachments?download=.{{$reportInfo['enclosure_url']}}" data-toggle="ajaxdownload" {{--data-options="{url:'/admin/personnel/report/download-attachments'}"--}}>下载附件</a>
                    @endif
                    @if(!$reportInfo['enclosure_url'])
                        暂无附件
                    @endif
            </div>
            <br/>

            <label class="row-label">{{$reportInfo['today']}}</label>
            <div class="row-input">
                <textarea cols="30" readonly rows="1" data-toggle="autoheight">{{$reportInfo['done_tag']}}</textarea>
            </div><br/>

            <label class="row-label">未完成工作：</label>
            <div class="row-input">
                <textarea cols="30" readonly rows="1" data-toggle="autoheight">{{$reportInfo['todo_tag']}}</textarea>
            </div><br/>

            <label class="row-label">待确认工作：</label>
            <div class="row-input">
                <textarea cols="30" readonly rows="1" data-toggle="autoheight">{{$reportInfo['to_be_confirmed_tag']}}</textarea>
            </div><br/>

            <label class="row-label">{{$reportInfo['next']}}</label>
            <div class="row-input">
                <textarea cols="30" readonly rows="1" data-toggle="autoheight">{{$reportInfo['todo_next_tag']}}</textarea>
            </div><br/>
        </div>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li>
            <button type="button" class="btn-close" data-icon="close">取消</button>
        </li>

    </ul>
</div>
<script>
    function freshPostPersonnel() {
        $("#notice-policy-list").datagrid("refresh", true);
    }
</script>